<div class="bread">
<ul class="br">
	<li class="home"><a href="<?php echo URLUltil::adminPage($this->getContext());?>">DashBoard</a></li>
	<li><?php echo $this->getControllerName()?> Manager</li>
</ul>
</div>
<div class = "xleft">
	<div class = "xtile" style="background: #1F8DC9;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'12'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "Product")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "Product")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Sản phẩm</span>
			<span class = "xxx"><?php echo $this->productCount?></span>
		</div>
	</div>	
	<div class = "xtile" style="background: #33B6EA;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'10'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "ProductCat")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "ProductCat")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Danh mục</span>
			<span class = "xxx"><?php echo $this->productCatCount?></span>
		</div>
	</div>	
	<div class = "xtile" style="background: #681141;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'9'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "ProductDisplay")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "ProductDisplay")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Hiễn thị</span>
			<span class = "xxx"><?php echo $this->productDisplayCount?></span>
		</div>
	</div>	
	<div class = "xtile" style="background: #FFB205;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'8'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "ProductDistributor")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "ProductDistributor")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Nhà phân phối</span>
			<span class = "xxx"><?php echo $this->productDistributorCount?></span>
		</div>
	</div>	
	<div class = "xtile" style="background: #007E0A;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'7'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "ProductManufacture")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "ProductManufacture")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Nhà sản xuất</span>
			<span class = "xxx"><?php echo $this->productManufactureCount?></span>
		</div>
	</div>	
	<div class = "xtile" style="background: #815FA7;">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl().'6'?>.png">
			<a href="<?php echo URLUltil::controllerSearch($this->getContext(), "ProductType")?>" class = "a1">Danh sách</a>
			<a href="<?php echo URLUltil::controllerCreate($this->getContext(), "ProductType")?>" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>Loại sản phẩm</span>
			<span class = "xxx"><?php echo $this->productTypeCount?></span>
		</div>
	</div>	
<?php
	$color = array(
			1 => "#681141",
			2 => "#0A6899",
			3 => "#007E0A",
			4 => "#457D3B",
			5 => "#714B2C",
			6 => "#815FA7",
			7 => "#654327",
			8 => "#4A8BF5",
			9 => "#D84A38",
			10 => "#FFB205",
			11 => "#33B6EA",
			12 => "#1F8DC9"
			); 
	for ($i = 1; $i < 7; $i++) {
		?>
	<div class = "xtile" style="background: <?php echo $color[$i];?>">
		<div class = "xxtop">	
			<img height="85px" alt="dkm" src="<?php echo $this->getImageUrl(); echo $i;?>.png">
			<a href="#" class = "a1">Danh sách</a>
			<a href="#" class = "a2">Thêm</a>
		</div>
		<div class = "xxbot">
			<span>LAPTOP</span>
			<span class = "xxx"><?php echo $i;?></span>
		</div>
	</div>	
		<?php 
	}
?>
</div>
<div class = "xright">
	<div class = "xtop">
		<h3>10 Đơn hàng mới nhất</h3>
		<ul>
			<li> <a href="#">io swip</a> </li>
			<li> <a href="#">io swip</a> </li>
			<li> <a href="#">io swip</a> </li>
			<li> <a href="#">io swip</a> </li>
			<li> <a href="#">io swip</a> </li>
		</ul>
	</div>
	<div class = "xbot">
		<h3>Top 10 sản phẩm mới nhất</h3>
		<ul>
		<?php 
		foreach ($this->top10New as $value){
			echo '<li><a href="'.$value['link'].'">'.$value[Product::NAME].'</a></li>';
		}
		?>
		</ul>
	</div>
</div>
